package com.exia.android.socialnet.facebook;

import android.view.View;

import com.exia.android.socialnet.session.logout.SimpleLogoutListener;

public class FacebookLogoutListener extends SimpleLogoutListener {
	
	protected FacebookActivity activity;
	
	public FacebookLogoutListener(){
		super();
		activity = null;
	}
	
	public FacebookLogoutListener(FacebookActivity activity_p){
		super();
		activity = activity_p;
	}

	/**
	 * 
	 * @return
	 */
	public FacebookActivity getFacebookActivity() {
		return activity;
	}

	/**
	 * 
	 * @param activity
	 */
	public void setFacebookActivity(FacebookActivity activity) {
		this.activity = activity;
	}
	
	@Override
	public void onLogoutBegin() {
		if(activity != null){
			/*
			activity.mText.setText("Logging out...");
			*/
		}
    }

	@Override
    public void onLogoutFinish() {
		if(activity  != null){
			/*
			activity .mText.setText("You have logged out! ");
			activity.mRequestButton.setVisibility(View.INVISIBLE);
			activity.mUploadButton.setVisibility(View.INVISIBLE);
			activity.mPostButton.setVisibility(View.INVISIBLE);
			*/
		}
    }
}
